package com.hongye.customer.mapper;

import com.hongye.common.entity.*;
import com.hongye.customer.vo.PublishQueryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper {

    List<SlideshowEntity> slideList();

    List<HouseEntity> houseList(int isNewHouse);

    List<RentHouseEntity> rentHouse();

    List<PublishQueryVo> demandHouse(@Param("publish_type_id") int publish_type_id,
                                     @Param("house_type_id") int house_type_id,
                                     @Param("city_id") int city_id);

    List<InformationEntity> informationList();

    List<StoreyEntity> houseRing();

    List<BrokerEntity> brokerList();

    List<GroupEntity> groupPurchase();

    void buyHouseInsert(PublishEntity publishEntity);

    CustomerEntity findById(int id);

    GroupEntity apply(Integer groupId);

    void addGroupCustomer(@Param("customerId") Integer customerId,@Param("groupId") Integer groupId);

    void update(@Param("groupId")Integer groupId,@Param("groupNum") Integer groupNum);

    GroupCustomerEntity findByIds(@Param("groupId") Integer groupId,@Param("customerId") Integer customerId);

    void addOrder(OrderEntity order);

    void addPayLog(PayLogEntity payLogEntity);

    void updateOrderStatus(String out_trade_no, String trade_no, String total_amount);

    OrderEntity getById(String orderId);
}
